package org.bjf.springboot.exception;

/**
 * DAO 异常
 */
public class DaoException extends BaseException {

  public DaoException(String message) {
    this(CommMsgCode.DAO_ERROR, message);
  }

  public DaoException(String message, Throwable cause) {
    this(CommMsgCode.DAO_ERROR, message, cause);
  }

  public DaoException(MsgCode code) {
    super(code);
  }

  public DaoException(MsgCode code, String message) {
    super(code, message);
  }

  public DaoException(MsgCode code, String message, Throwable cause) {
    super(code, message, cause);
  }

  public DaoException(MsgCode code, Throwable cause) {
    super(code, cause);
  }

  public DaoException(MsgCode code, String message, Throwable cause, boolean enableSuppression,
      boolean writableStackTrace) {
    super(code, message, cause, enableSuppression, writableStackTrace);
  }
}
